{assign var='header' value='header2'}
{include file="top.html"}
<link rel="stylesheet" href="/style/mobile/css/member.css">
<div id="content" class="container main">
    <div class="tab-m-a">
        <ul class="ui-clr">
            <li class="ta">基本信息</li>
            <li class="ta last">修改密码</li>
        </ul>
    </div>

    <div class="tab-m-c" style="display: none;">
        <div class="tips-m">
            亲爱的 <span class="color01">{$member.username}</span><br>
            请填写您的真实资料，有助于我们更好的为您服务。
            <div class="prompt">完善以下资料即可获得80经验值，{$site_config.site_name}不会以任何形式公开您的个人隐私，请放心填写！</div>
        </div>

        <div class="form-m">
            <form action="" target="iframeNews" method="post" id="submit_form">
            <div class="item ui-clr">
                <dl>
                    <dt class="color03">昵 称：</dt>
                    <dd>
                        <input type="text" class="input-m" name="nickname" value="{$member.nickname}" />
                    </dd>
                </dl>
            </div>
            <div class="item ui-clr">
                <dl>
                    <dt class="color03">出生日期：</dt>
                    <dd><input type="text" class="input-m" name="birthday" value="{$member.birthday}" /></dd>
                </dl>
            </div>
            <div class="item ui-clr">
                <dl>
                    <dt class="color03">性　别：</dt>
                    <dd>
                        <label><input name="sex" type="radio" value="1" {if $member.sex eq 1}checked{/if}/> 男</label>
                        <label><input name="sex" type="radio" value="2" {if $member.sex eq 2}checked{/if}/> 女</label>
                    </dd>
                </dl>
            </div>
            <div class="item ui-clr">
                <dl>
                    <dt class="color03">电子邮箱：</dt>
                    <dd><input type="text" class="input-m" name="email" value="{$member.email}" /></dd>
                </dl>
            </div>
            <div class="item ui-clr">
                <dl>
                    <dt class="color03">手 机：</dt>
                    <dd style="padding-top:2px;">{$member.mobile}</dd>
                </dl>
            </div>
            <div class="item ui-clr">
                <dl>
                    <dt class="color03">所在地区：</dt>
                    <dd>{linkage('zone',$member.zone)}</dd>
                </dl>
            </div>
            <div class="item ui-clr">
                <dl>
                    <dt class="color03">留下一句：</dt>
                    <dd>
                        <input name="intro" type="text" class="input-m" value="{$member.intro}" />
                        <div class="tip-m" style="line-height: 1.8; font-size: 14px;">
                            <a href="{'/minfo?id='|cat:$member.mid}" class="color02">去个人空间看看</a>
                        </div>
                    </dd>
                </dl>
            </div>
            <input class="btn" name="Submit" type="submit" value="确认修改">
            </form>
        </div>
    </div>

    <div class="tab-m-c" style="display: none;">
        <div class="form-m">
            <form action="{url('/member/chpass')}" target="iframeNews" method="post">
                <div class="item ui-clr">
                    {if $wechat neq 1}
                    <dl>
                        <dt class="color03">原密码：</dt>
                        <dd>
                            <input type="password" class="input-m" name="oldpass" value="" />
                        </dd>
                    </dl>
                    {/if}
                </div>
                <div class="item ui-clr">
                    <dl>
                        <dt class="color03">新密码：</dt>
                        <dd>
                            <input type="password" class="input-m" name="pass1" value="" />
                        </dd>
                    </dl>
                </div>
                <div class="item ui-clr">
                    <dl>
                        <dt class="color03">确认密码：</dt>
                        <dd>
                            <input type="password" class="input-m" name="pass2" value="" />
                        </dd>
                    </dl>
                </div>
                <input class="btn" name="Submit" type="submit" value="确认修改">
            </form>
        </div>
    </div>
</div>
<script type="text/javascript">
    $(function(){
        tabs('#content','.tab-m-a li','.tab-m-c','on','click');
        if(location.hash=='#pass'){
            $('.tab-m-a li').eq(1).click();
        }
    })
</script>
{include file="footer.html"}